<script>
import { defaultShare } from './common/util'

export default {
  onLaunch: function() {
    // console.log('App Launch')
    uni.setStorageSync('url',window.location.href)
  },
  onShow: function(options) {
    // console.log('App Show')
    if(uni.getStorageSync('token')) {
      defaultShare()
    }
  },
  onHide: function() {
    // console.log('App Hide')
  }
}
</script>

<style lang="scss">
/*每个页面公共css */
@import "uview-ui/index.scss";
view,
scroll-view {
  box-sizing: border-box;
}
.page {
  width: 100%;
  height: 100%;
  background: #F4F7F6;
}
</style>
